package com.seal.tsms.school.service;

import com.seal.tsms.base.dao.BaseDao;
import com.seal.tsms.base.service.AbstractBaseService;
import com.seal.tsms.school.entity.RelationInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by huhanwei on 2016/1/20.
 * RelationInfo Service接口实现类
 */
@Service
@Transactional
public class RelationInfoServiceImpl extends AbstractBaseService<RelationInfo,String> implements RelationInfoService {

    @Override
    @Autowired
    @Qualifier("relationInfoDaoImpl")
    public void setSelfDao(BaseDao<RelationInfo, String> selfDao) {
        super.setSelfDao(selfDao);
    }

    public void saveList(List<RelationInfo> list) {
        for (RelationInfo relationInfo:list
             ) {
            this.save(relationInfo);
        }
    }
}
